import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// vant相关
// 自定义的重置vant的样式表
import '@/assets/css/resetvant.css'
// 按需导入vant组件
import { Search, Button, Tabbar, TabbarItem, NavBar, Sticky, Swipe, SwipeItem, Grid,GridItem,Lazyload,Image,Panel,Card,Icon,TreeSelect,
  NoticeBar,PullRefresh,Tab,Tabs,Tag,Col,Row,CellGroup,Cell,Popup,GoodsAction,GoodsActionButton,GoodsActionIcon,Sku,CheckboxGroup,Checkbox,Form,Field,Stepper} from 'vant';
Vue.use(Search);
Vue.use(Button);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Sticky);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Lazyload);
Vue.use(Image);
Vue.use(Panel);
Vue.use(Card);
Vue.use(Icon);
Vue.use(TreeSelect);
Vue.use(NoticeBar);
Vue.use(PullRefresh);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Tag);
Vue.use(Col);
Vue.use(Row);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Popup);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Sku);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Form);
Vue.use(Field);
Vue.use(Stepper);
// 导入base样式
import '@/assets/css/base.css'

// 使得发送axios请求为直接用this.$http
import axios from 'axios';
Vue.prototype.$http = axios
Vue.prototype.$http.defaults.baseURL = 'http://127.0.0.1:2000/'



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
  data:{
   
  }
}).$mount('#app')
